package com.wang.sqlsession;

import com.wang.pojo.Configuration;
import com.wang.pojo.MappedStatement;

import java.sql.SQLException;
import java.util.List;

/**
 * Created by wangq on 2021/7/1.
 */
public interface Executor {
    void create(Configuration configuration, MappedStatement mappedStatement, Object... object) throws Exception;

    void update(Configuration configuration, MappedStatement mappedStatement, Object... objects) throws Exception;

    void delete(Configuration configuration, MappedStatement mappedStatement, Object... objects) throws Exception;

    public <E> List<E> query(Configuration configuration, MappedStatement mappedStatement, Object... objects) throws Exception;
}
